<script type="text/javascript">
	Ext.onReady(function()
		{
			var el = Ext.get("username");
			el.focus();
		}
	)
</script>
<cfoutput>
	<h3>Current Session Status</h3>
	<p>
		User: <cfif (IsDefined("session.oUser"))>#session.oUser.getUsername()#<cfelse>unkown</cfif><br />
		Logged In: <cfif (IsDefined("session.oUser"))>#session.oUser.getIsAuthenticated()#<cfelse>false</cfif>
	</p>
</cfoutput>
<cfform name="loginForm" action="#variables.self#" method="post">
	<table>
		<tr>
			<td>username</td>
			<td><cfinput type="text" id="username" name="j_username" /></td>
		</tr>
		<tr>
			<td>password</td>
			<td><cfinput type="password" name="j_password"></td>
		</tr>
		<tr>
			<td colspan="2" align="right"><cfinput name="login" type="submit" value="login" /></td>
		</tr>
	</table>
	<cfinput type="hidden" name="fuseaction" value="#XFA.next#" />
</cfform>